/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_Studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once


template<typename TF>
inline void f_rangeRun(uint32 num, const TF& fun) {
	for (uint32 i = 0; i < num; ++i) {
		fun(i);
	}
}

template<typename TF>
inline void f_range并行Run(uint32 num, const TF& fun) {
#pragma loop(no_vector)  
	for (uint32 i = 0; i < num; ++i) {
		fun(i);
	}
}



